/**
 * Copyright (c) 2011-2021 libbitcoin developers (see AUTHORS)
 * Copyright (c) 2016-2021 metaverse core developers (see MVS-AUTHORS)
 *
 * This file is part of metaverse.
 *
 * metaverse is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License with
 * additional permissions to the one published by the Free Software
 * Foundation, either version 3 of the License, or (at your option)
 * any later version. For more information see LICENSE.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
#ifndef MVS_HANDLERS_HPP
#define MVS_HANDLERS_HPP

#include <functional>
#include <metaverse/bitcoin/error.hpp>

namespace libbitcoin {

    typedef std::function<void(const code&)> handle0;

    template <typename Type>
    using handle1 = std::function<void(const code&, const Type&)>;

    template <typename Type1, typename Type2>
    using handle2 = std::function<void(const code&, const Type1&,
        const Type2&)>;

    template <typename Type1, typename Type2, typename Type3>
    using handle3 = std::function<void(const code&, const Type1&,
        const Type2&, const Type3&)>;

} // namespace libbitcoin

#endif
